/**
 * Created by Jackie on 2017/2/14.
 */

const routes = [
    {
        path: '/diningMode',
        name: 'diningMode',
        meta: {
            title: '就餐方式'
        },
        component: resolve => require(['./components/diningMode.vue'], resolve)
    }, {
        path: '/index',
        name: 'index',
        meta: {
            title: '首页'
        },
        component: resolve => require(['./components/index.vue'], resolve)
    }, {
        path: '/pageDemo',
        name: 'pageDemo',
        meta: {
            title: '演示页面'
        },
        component: resolve => require(['./components/pageDemo.vue'], resolve)
    }, {
        path: '/assess',
        name: 'assess',
        meta: {
            title: '评价'
        },
        component: resolve => require(['./components/assess.vue'], resolve)
    }, {
        path: '/orderConfirm',
        name: 'orderConfirm',
        meta: {
            title: '提交订单'
        },
        component: resolve => require(['./components/order-confirm.vue'], resolve)
    }, {
        path: '/orderInfo',
        name: 'orderInfo',
        meta: {
            title: '订单详情'
        },
        component: resolve => require(['./components/order-info.vue'], resolve)
    }, {
        path: '/foodDetail',
        name: 'foodDetail',
        meta: {
            title: '餐品详情'
        },
        component: resolve => require(['./components/foodDetail.vue'], resolve)
    },
    {
        path: '/historyOrder',
        name: 'historyOrder',
        meta: {
            title: '历史订单'
        },
        component: resolve => require(['./components/historyOrder.vue'], resolve)
    },
    {
        path: '/switchCity',
        name: 'switchCity',
        meta: {
            title: '切换城市'
        },
        component: resolve => require(['./components/switchCity.vue'], resolve)
    },
    {
        path: '/orderConfirmSuss',
        name: 'orderConfirmSuss',
        meta: {
            title: '评价成功'
        },
        component: resolve => require(['./components/order-confirm-suss.vue'], resolve)
    },
/*    {
        path: '/orderConfirmInfo',
        name: 'orderConfirmInfo',
        meta: {
            title: '等待取餐'
        },
        component: resolve => require(['./components/order-confirm-info.vue'], resolve)
    },*/
    {
        path: '/xstore',
        name: 'xstore',
        meta: {
            title: '门店首页'
        },
        component: resolve => require(['./components/xstore.vue'], resolve)

    },
    {
        path: '/view-comments',
        name: 'view-comments',
        meta: {
            title: '门店详情'
        },
        component: resolve => require(['./components/view-comments.vue'], resolve)
    },
    {
        path: '/setTakeTime',
        name: 'setTakeTime',
        meta: {
            title: '取餐时间'
        },
        component: resolve => require(['./components/setTakeTime.vue'], resolve)
    },
    {
        path: '/phoneValida',
        name: 'phoneValida',
        meta: {
            title: '手机验证'
        },
        component: resolve => require(['./components/phoneValida.vue'], resolve)
    },
    {
        path: '/phoneValidaSucc',
        name: 'phoneValidaSucc',
        meta: {
            title: '手机验证'
        },
        component: resolve => require(['./components/phoneValidaSucc.vue'], resolve)
    },
    {
        path: '/',
        name: 'nearbyStores',
        meta: {
            title: '附近门店'
        },
        component: resolve => require(['./components/nearbyStores.vue'], resolve)
    },
    {
        path: '/showAssess',
        name: 'showAssess',
        meta: {
            title: '评价详情'
        },
        component: resolve => require(['./components/show-assess.vue'], resolve)
    },
    {
        path: '/tcnew',
        name: 'tcnew',
        meta: {
            title: '等待取餐'
        },
        component: resolve => require(['./components/tcNew.vue'], resolve)
    },
    // {
    //     path: '/test',
    //     name: 'test',
    //     meta: {
    //         title: '测试专用'
    //     },
    //     component: resolve => require(['./components/test.vue'], resolve)
    // }
]

export default routes
